import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: '/index',
    name: 'index',
    component: () => import('../views/index/index.vue')
  },
  {
    path: '/yingyuan',
    name: 'yingyuan',
    component: () => import('../views/yingyuan/yingyuan.vue')
  },
  {
    path: '/zixun',
    name: 'zixun',
    component: () => import('../views/zixun/zixun.vue')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('../views/user/user.vue')
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
